﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace IPCPages
{
    public partial class FormShowFatalError : Form
    {
        List<KeyValuePair<string, string>> Problems = new List<KeyValuePair<string, string>>();

        public FormShowFatalError(List<KeyValuePair<string, string>> problems)
        {
            Problems = problems;
            InitializeComponent();
        }

        private void InitCtrls()
        {
            foreach (KeyValuePair<string, string> p in Problems)
            {
                richTextBox1.AppendText(p.Key);
                richTextBox1.AppendText(": ");
                richTextBox1.AppendText(p.Value);
                richTextBox1.AppendText(Environment.NewLine);
            }
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            this.Close();
        }

        private void FormShowFatalError_Load(object sender, EventArgs e)
        {
            InitCtrls();
        }

        private void buttonOK_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
